From: OpenJDK Team Date: Mon, 5 Jan 2026 04:35:14 +0000 (+1300) Subject: zero-alpha-workaround X-Git-Tag: archive/raspbian/21.0.10_6ea-1+rpi1^2~2 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=9b3016a3d939c96ae4b6896b9818205869dfff3f;p=openjdk-21.git zero-alpha-workaround Gbp-Pq: Name zero-alpha-workaround.diff --- diff --git a/src/hotspot/os/linux/os_linux.cpp b/src/hotspot/os/linux/os_linux.cpp index c6a996d69..6612a48f0 100644 --- a/src/hotspot/os/linux/os_linux.cpp +++ b/src/hotspot/os/linux/os_linux.cpp @@ -2878,6 +2878,10 @@ void os::pd_commit_memory_or_exit(char* addr, size_t size, bool exec, // Note that the value for MAP_FIXED_NOREPLACE differs between architectures, but all architectures // supported by OpenJDK share the same flag value. #define MAP_FIXED_NOREPLACE_value 0x100000 +// on ALPHA, that triggers with 0x1000000 == 0x100000. why? +#if defined(ALPHA) && defined(MAP_FIXED_NOREPLACE) +#undef MAP_FIXED_NOREPLACE +#endif #ifndef MAP_FIXED_NOREPLACE #define MAP_FIXED_NOREPLACE MAP_FIXED_NOREPLACE_value #else